package com.yisu.auction.api.domain.request.rechargePackage;

import com.yisu.auction.api.domain.request.BasePage;
import org.apache.commons.lang.StringUtils;

/**
 * author: 赵杰
 * Business Description：充值业务请求实体
 * createTime：2017/8/19
 */
public class RechargeRequest extends BasePage {
    private String amount; //金额
    private Integer payType;//1 支付宝 2微信 3其他
    private String orderId;//订单号
    private String key;
    private String orderSign; //订单标记
    private String description; //描述
    private String callbackUrl;

    public String getAmount() {
        return amount;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }

    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getOrderSign() {
        if (StringUtils.isEmpty(orderSign))
            return "";
        return orderSign;
    }

    public void setOrderSign(String orderSign) {
        this.orderSign = orderSign;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getCallbackUrl() {
        return callbackUrl;
    }

    public void setCallbackUrl(String callbackUrl) {
        this.callbackUrl = callbackUrl;
    }

    @Override
    public String toString() {
        return "RechargeRequest{" +
                "amount='" + amount + '\'' +
                ", payType=" + payType +
                ", orderId='" + orderId + '\'' +
                ", key='" + key + '\'' +
                ", orderSign='" + orderSign + '\'' +
                ", description='" + description + '\'' +
                ", callbackUrl='" + callbackUrl + '\'' +
                '}';
    }
}
